package IO;

import java.io.File;

public class IODemo6 {
    public static void main(String[] args) {
        File src = new File("./test2.txt");
        File desc = new File("./aaa/test2.txt");
        //将src的文件重命名为desc文件的名字
        boolean ret = src.renameTo(desc);
        System.out.println("是否移动成功？？？"+ ret);
    }
}



